<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="memory.JvmInformation"%>
<%@page import="java.lang.management.OperatingSystemMXBean"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="<%= getServletContext().getContextPath() %>/js/scripts.js"></script>
<script type="text/javascript" src="<%= getServletContext().getContextPath() %>/js/jquery-1.2.1.js"></script>
<link rel="stylesheet" type="text/css" href="<%= getServletContext().getContextPath() %>/css/style.css" >
<script>
  $(document).ready(function(){
        $("div").slideDown("slow");
    });
 </script>
</head>
<body>
<% JvmInformation jvmobj = (JvmInformation)request.getAttribute("jvmobj"); %>
<div class="title"> OS information</div>
<div class="info">
<table>
<tr>
		<td>
			<% OperatingSystemMXBean osmbean= jvmobj.getOsmxbean(); %>
			<b>Architecture</b></td><td>: <%= osmbean.getArch() %>
		</td>
	</tr>
	<tr>
		<td>
			<b>Number of processors </b></td><td>: <%=osmbean.getAvailableProcessors() %>
		</td>
	</tr>
	<tr>
		<td>
			<b>Operating system </b></td><td>: <%= osmbean.getName() %> <%= osmbean.getVersion() %>
		</td>
	</tr>
	<tr>
		<td>
			<b>System load average </b></td><td>: <%= osmbean.getSystemLoadAverage() %>
		</td>
	</tr>
	</table>
</div>
</body>
</html>